package team.szm.scd.database.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import team.szm.scd.database.properties.WeekEnum;
import team.szm.scd.database.typehandler.DayOfWeekTypeHandler;

import java.time.DayOfWeek;
import java.time.LocalTime;


@TableName(value = "doctor_work_time", autoResultMap = true)
@Data
public class DoctorWorkTime {
    @TableField("did")
    private String doctorId;
    @TableField(typeHandler = DayOfWeekTypeHandler.class)
    private DayOfWeek weekDay;
    private LocalTime startTime;
    private LocalTime endTime;
}
